import styled from 'styled-components';


export const HomeWrapper = styled.div`
	width: 960px;
	margin: 0 auto;
	overflow:hidden;
`;


export const HomeLeft = styled.div`
	width: 625px;
	float:left;
	margin-left: 15px;
	padding-top: 30px;
	.banner{
		width: 625px;
		height: 240px;
	}
`;

export const HomeRight = styled.div`
	width: 280px;
	float:right;
`;

export const BannerWrapper = styled.div`
	width: 625px;
	height: 240px;
	overflow: hidden;
	img{
		display: block;
		width: 625px;
	}
`;

export const TopicsWrapper = styled.div`
	overflow: hidden;
	padding: 20px 0 10px 0;
	margin-left: -18px;
	border-bottom: 1px solid #dcdcdc;
`;

export const TopicsItem = styled.div`
	float: left;
	height: 32px;
	line-height: 32px;
	background: #f7f7f7;
	margin-left: 18px;
	margin-bottom: 18px;
	font-size: 14px;
	color: #000;
	padding-right:10px;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
	.Topics-pic{
		display: block;
		float: left;
		width: 32px;
		height: 32px;
		margin-right: 10px;
	}
`;

export const TopicsMore = styled.a`
	display: block;
	float: left;
	margin-left: 18px;
	margin-top: 10px;
	font-size: 14px;
	color: #787878;
	cursor: pointer;
`;

export const ListItem = styled.div`
	overflow: hidden;
	padding: 20px 0;
	border-bottom: 1px solid #dcdcdc;
	img{
		display: block;
		float: right;
		width: 125px;
		height: 100px;
		border-radius: 4px;
	}
`;

export const ListInfo = styled.div`
	float: left;
	width: 500px;
	box-sizing: border-box;
	padding-right: 10px;
	h3{
		line-height: 28px;
		font-size: 18px;
		font-weight: bold;
		color: #333;
	}
	p{
		font-size: 13px;
		line-height: 24px;
		color: #999;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
	}
`;

export const LoadMore = styled.div`
	width: 100%;
	height: 40px;
	margin: 30px 0;
	line-height: 40px;
	text-align: center;
	background: #a5a5a5;
	border-radius: 20px;
	color: #fff;
	cursor: pointer;
`;

export const RecommendWrapper =styled.div`
	margin: 30px 0;
	width: 280px;
`;

export const RecommendItem = styled.div`
	width: 280px;
	height: 50px;
	margin-bottom: 5px;
	background:url(${(props) => props.imgUrl});
	background-size: contain;
`;

export const Eweima = styled.div`
	position: relative;
	width: 280px;
	margin: 20px 0;
	padding: 10px 22px;
	border: 1px solid #f0f0f0;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	img{
		display: inline-block;
		width: 60px;
		height: 60px;
		vertical-align: middle;
	}
`;

export const EweimaInfo = styled.div`
	display: inline-block;
	vertical-align: middle;
	margin-left: 7px;
	h4{
		font-size: 15px;
		color: #333;
	}
	p{
		margin-top: 4px;
		font-size: 13px;
		color: #999;
	}
`;

export const EweimaImg = styled.div`
	.ewmShow{
		position: absolute;
		padding: 20px;
		width: 100px;
		height: 100px;
		border: 1px solid #ddd;
		background: url('https://cdn2.jianshu.io/assets/web/download-index-side-qrcode-cb13fc9106a478795f8d10f9f632fccf.png');
		background-size: contain;
		left: 50%;
		margin-left: -100px;
		top: -150px;
	}
`;

export const WriterTitle = styled.div`
	font-size: 14px;
	color: #969696;
	text-align: left;
`;
export const WriterSwitch = styled.a`
	display: block;
	float: right;
	font-size: 14px;
	color: #969696;
	cursor: pointer;
	.spin{
		display: block;
		float: left;
		font-size: 14px;
		margin-right: 4px;
	}
`;
export const WriterItem = styled.div`
	margin-top: 15px;
	margin-bottom: 10px;
	overflow: hidden;
	img{
		display: block;
		float: left;
		width: 48px;
		height: 48px;
		border-radius: 50%;
		vertical-align: middle;
	}
`;
export const WriterItemTitle = styled.div`
	float: left;
	margin-left: 10px;
	margin-top: 5px;
	vertical-align: middle;
	h4{
		font-size: 14px;
		color: #333;
	}
	p{
		font-size: 12px;
		margin-top: 2px;
		color: #969696;
	}
`;
export const Add = styled.a`
	float: right;
	font-size: 13px;
	color: #42c02e;
	margin-top: 5px;
`;

export const WriterMore = styled.a`
	display: block;
	text-align:center;
	padding: 7px 7px 7px 12px;
	font-size: 13px;
	background: #f7f7f7;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
	cursor: pointer;
`;

export const BackTop = styled.div`
	position: fixed;
	right: 100px;
	bottom: 100px;
	width: 60px;
	height: 60px;
	line-height: 60px;
	text-align: center;
	border: 1px solid #ccc;
	cursor: pointer;
`;